package edu.uit.se.laps.web.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sanpham")
public class SanPham implements Serializable{

	private static final long serialVersionUID = 8835677473454285426L;
	
	private int idSP;
	private int idLoaiSP;
	private int idCL;
	private String tenSP;
	
	private String moTa;
	private String dacDiem;
	private String dieuKien;
	
	private String srcImg;
	private String srcImgCT;
	
	private Date ngayCapNhat;
	private float gia;
	private int soLuongTon;
	private int soLanMua;
	private String ghiChu;
	
	@Id
	@GeneratedValue
	@Column(name = "idSP")
	public int getIdSP() {
		return idSP;
	}
	@Column(name = "idLoaiSP")
	public int getIdLoaiSP() {
		return idLoaiSP;
	}
	@Column(name = "idCL")
	public int getIdCL() {
		return idCL;
	}
	@Column(name = "TenSP")
	public String getTenSP() {
		return tenSP;
	}
	@Column(name = "DacDiem")
	public String getDacDiem() {
		return dacDiem;
	}
	@Column(name = "DieuKien")
	public String getDieuKien() {
		return dieuKien;
	}
	@Column(name = "srcImg")
	public String getSrcImg() {
		return srcImg;
	}	
	@Column(name = "srcImgCT")
	public String getSrcImgCT() {
		return srcImgCT;
	}
	@Column(name = "MoTa")
	public String getMoTa() {
		return moTa;
	}
	@Column(name = "NgayCapNhat")
	public Date getNgayCapNhat() {
		return ngayCapNhat;
	}
	@Column(name = "Gia")
	public float getGia() {
		return gia;
	}
	@Column(name = "SoLuongTon")
	public int getSoLuongTon() {
		return soLuongTon;
	}
	@Column(name = "SoLanMua")
	public int getSoLanMua() {
		return soLanMua;
	}
	@Column(name = "GhiChu")
	public String getGhiChu() {
		return ghiChu;
	}
	
	
	public void setIdSP(int idSP) {
		this.idSP = idSP;
	}	
	public void setIdLoaiSP(int idLoaiSP) {
		this.idLoaiSP = idLoaiSP;
	}
	public void setIdCL(int idCL) {
		this.idCL = idCL;
	}
	public void setTenSP(String tenSP) {
		this.tenSP = tenSP;
	}
	public void setDacDiem(String dacDiem) {
		this.dacDiem = dacDiem;
	}	
	public void setDieuKien(String dieuKien) {
		this.dieuKien = dieuKien;
	}	
	public void setSrcImg(String srcImg) {
		this.srcImg = srcImg;
	}	
	public void setSrcImgCT(String srcImgCT) {
		this.srcImgCT = srcImgCT;
	}
	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}
	public void setNgayCapNhat(Date ngayCapNhat) {
		this.ngayCapNhat = ngayCapNhat;
	}
	public void setGia(float gia) {
		this.gia = gia;
	}
	public void setSoLuongTon(int soLuongTon) {
		this.soLuongTon = soLuongTon;
	}
	public void setSoLanMua(int soLanMua) {
		this.soLanMua = soLanMua;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	
	
}
